/* 通用样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}

/* 全局变量和公共样式 */
.w {
	width: var(--w);
	margin: 0 auto;
}

.tongan {
	min-width: var(--w);
}

:root {
	--w: 1230px;
	--primary-color: #666;
	--secondary-color: #80c2cc;
	--accent-color: #ff6700;
	--light-gray: #f5f5f5;
	--medium-gray: #e0e0e0;
	--dark-gray: #333;
	--font-family: 'Open Sans', sans-serif;
}

html {
	scroll-behavior: smooth;
	font-family: var(--font-family);
}

/* 清除浮动 */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* 头部样式 */
.top-bar {
	height: 40px;
	background: linear-gradient(to bottom, var(--primary-color), #555);
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.top-nav-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

/* 导航条左边 */
.top-nav-left {
	height: 100%;
	margin: 0 20px;
	display: flex;
	align-items: center;
}

.top-nav-left>ul {
	display: flex;
	height: 100%;
}

.top-nav-left>ul>li {
	margin-right: 20px;
}

.top-nav-left a {
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 14px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-left a:hover {
	color: var(--accent-color);
}

/* 导航条右边 */
.top-nav-right {
	height: 100%;
	margin: 0 20px;
	display: flex;
	align-items: center;
}

.top-nav-right>ul {
	display: flex;
	align-items: center;
	height: 100%;
}

.top-nav-right>ul>li {
	position: relative;
	margin-left: 20px;
}

.top-nav-right a {
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 14px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-right a:hover {
	color: var(--accent-color);
}

.top-nav-right>ul>span {
	display: inline-block;
	height: 20px;
	border-left: 1px solid var(--dark-gray);
	margin: 0 10px;
	vertical-align: middle;
}

.right-img {
	width: 180px;
	position: absolute;
	border: 1px solid var(--medium-gray);
	top: 100%;
	left: -50%;
	display: none;
	background-color: #fff;
	text-align: center;
	z-index: 99;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.top-nav-right img {
	width: 80%;
	height: auto;
	margin-top: 10px;
}

.top-nav-right p {
	font-size: 12px;
	line-height: 160%;
	margin-top: 5px;
}

.top-nav-right>ul>li:hover .right-img {
	display: block;
	opacity: 1;
}

.lists-title {
	position: relative;
}

.lists-title:hover .lists-wrapper {
	display: block;
}

.lists-wrapper {
	position: absolute;
	top: 100%;
	right: -10%;
	width: 300px;
	background-color: #fff;
	z-index: 10000;
	display: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.lists-wrapper img {
	width: 30%;
	height: auto;
	float: left;
	margin-right: 10px;
}

.lists-wrapper>div>span {
	display: block;
	margin-bottom: 5px;
	overflow: hidden;
	text-align: left;
}

ul.lists {
	clear: both;
	margin-top: 10px;
}

ul.lists>li {
	margin-bottom: 5px;
}

ul.lists>li>span {
	display: inline-block;
	border: none;
	vertical-align: top;
	margin-left: 20px;
	margin-top: 20px;
	font-size: 14px;
}

ul.lists>li>a {
	display: block;
	color: var(--dark-gray);
	padding: 5px;
	transition: background-color 0.3s ease;
}

ul.lists>li>a:hover {
	background-color: var(--medium-gray);
}

/* 导航栏 */
.nav-bar {
	height: 80px;
	background-color: #fff;
	position: relative;
	box-sizing: border-box;
	padding: 20px 0;
	margin-top: 40px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* logo */
.nav-logo {
	width: auto;
	height: 100%;
	float: left;
	display: flex;
	align-items: center;
}

.nav-logo img {
	height: 50px;
	width: 116px;
	background-size: auto 50px;
	margin-left: 20px;
}

/* 搜索框 */
.search {
	float: right;
	margin-top: 10px;
	margin-right: 20px;
}

.search>input {
	height: 20px;
	width: 150px;
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	padding: 0 5px;
}

/* 一级菜单 */
.menu-wrapper-left {
	float: left;
	height: 50px;
	display: flex;
	align-items: center;
}

.menu-wrapper-left>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-left>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
	margin-right: 20px;
}

.menu-wrapper-left>ul>li:hover {
	border-bottom: 5px solid var(--accent-color);
	color: var(--accent-color);
}

.menu-wrapper-left>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-left a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-left div {
	position: absolute;
	width: 100%;
	top: 100%;
	left: 0;
	height: 0;
	overflow: hidden;
	background-color: #fff;
	transition: height 0.4s ease;
	z-index: 11111111111;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 二级菜单 */
ul.menu-main {
	font-size: 0;
	height: 0;
	box-sizing: border-box;
}

ul.menu-main>li {
	width: calc(100% / 5);
	box-sizing: border-box;
	display: inline-block;
	padding: 20px;
}

ul.menu-main>li>a>p {
	font-size: 10px;
	color: var(--dark-gray);
}

ul.menu-main>li>a>img {
	height: auto;
	width: 50%;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-wrapper-left>ul>li:hover>div {
	height: 170px;
	border: 1px solid var(--medium-gray);
	border-top: none;
	z-index: 111111;
}

.menu-wrapper-right {
	float: right;
	height: 50px;
	margin-right: 10px;
	display: flex;
	align-items: center;
}

.menu-wrapper-right>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-right>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
	margin-left: 20px;
}

.menu-wrapper-right>ul>li:hover {
	color: var(--accent-color);
}

.menu-wrapper-right>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-right a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-right>ul::before {
	content: "";
	height: 100%;
	border: 1px solid var(--medium-gray);
	margin-right: 5px;
}

.list-title-wrapper {
	background-color: var(--light-gray);
	height: 40px;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-title {
	line-height: 40px;
	font-size: 14px;
}

.list-title a {
	color: var(--dark-gray);
	text-decoration: none;
	transition: color 0.3s ease;
}

.list-title a:hover {
	color: var(--accent-color);
}

.list-left {
	float: left;
	width: 20%;
	background-color: var(--light-gray);
	margin-right: 20px;
}

ul.list {
	width: 100%;
	text-align: center;
	margin: 30px 0;
}

ul.list h3 {
	margin-bottom: 40px;
	color: var(--dark-gray);
}

ul.list li {
	margin: 15px 0;
}

ul.list a {
	text-decoration: none;
	color: var(--dark-gray);
	transition: color 0.3s ease;
}

ul.list>li.show>a {
	color: var(--accent-color);
}

ul.list a:hover {
	color: var(--accent-color);
}

.list-center {
	overflow: hidden;
	position: relative;
	background-color: #fff;
	margin-top: 40px;
	padding: 0 20px;
	height: 1200px;
}

.list-center>h3 {
	font-size: 28px;
	color: var(--dark-gray);
}

.list-center>div {
	margin: 20px 0;
	font-size: 0;
}

.list-menu>li>a {
	text-decoration: none;
	color: var(--dark-gray);
	font-size: 16px;
	margin: 0 5px;
	transition: color 0.3s ease;
}

ul.list-menu>li.show>a {
	color: var(--accent-color);
}

.list-menu-title {
	float: left;
	font-size: 20px;
	border-bottom: 2px solid var(--accent-color);
	color: var(--dark-gray);
}

ul.list-menu {
	overflow: hidden;
	text-align: right;
}

ul.list-menu>li {
	display: inline-block;
}

.list-search {
	margin-top: 30px;
	font-size: 0;
}

.list-search>input {
	height: 30px;
	width: 200px;
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	padding: 0 5px;
}

.list-search>button {
	height: 30px;
	width: 30px;
	background-color: var(--accent-color);
	border: none;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.list-search>button:hover {
	background-color: #ff832b;
}

.list-sub-wrapper {
	width: 100%;
	height: 300px;
	box-sizing: border-box;
	border: 1px solid var(--medium-gray);
	margin-top: 40px;
	padding: 20px;
	border-radius: 4px;
}

.list-sub-title {
	padding: 5px 0;
	height: 50px;
	border-bottom: 1px solid var(--medium-gray);
}

.list-sub-title h6 {
	font-size: 18px;
	color: var(--accent-color);
}

.list-sub-title p {
	font-size: 14px;
	margin-top: 5px;
	margin-right: 5px;
	display: inline-block;
	color: var(--dark-gray);
}

.list-sub-title span {
	font-size: 18px;
	color: var(--dark-gray);
}

.list-sub-left {
	float: left;
}

.list-sub>div {
	display: inline-block;
}

.list-sub-img {
	display: inline-block;
	float: left;
	width: 200px;
}

.list-sub-container {
	margin-top: 20px;
	overflow: hidden;
}

.list-sub-img>a>img {
	margin-top: 20px;
	height: 60%;
	width: 60%;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-sub-left>div>a {
	color: var(--dark-gray);
	text-decoration: none;
	transition: color 0.3s ease;
}

.list-sub-left>div>a:hover {
	color: var(--accent-color);
}

.list-sub-container>a>p {
	width: 140px;
	font-size: 14px;
	color: var(--dark-gray);
	transition: color 0.3s ease;
}

.list-sub-container>a>p:hover {
	color: var(--accent-color);
}

.list-sub-container>span {
	margin-top: 10px;
	font-size: 14px;
	color: var(--dark-gray);
}

.list-button {
	float: right;
	padding: 20px;
}

.list-button>button {
	display: block;
	width: 120px;
	height: 40px;
	margin: 10px 0;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.btn-buy {
	background-color: var(--accent-color);
	color: #fff;
}

.btn-buy:hover {
	background-color: #ff832b;
}

.btn-delete {
	background-color: var(--medium-gray);
	color: var(--dark-gray);
}

.btn-delete:hover {
	background-color: #ccc;
}

.dialog {
	position: absolute;
	top: 40%;
	left: 40%;
	border: 1px solid var(--medium-gray);
	padding: 20px;
	background-color: #fff;
	z-index: 2;
	width: 240px;
	height: 240px;
	display: none;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dialog>div {
	font-size: 14px;
	margin: 10px 0;
	color: var(--dark-gray);
}

.dialog input {
	width: 100%;
	height: 20px;
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	padding: 0 5px;
}

.dialog span {
	color: var(--accent-color);
	font-size: 12px;
}

.dialog button {
	width: 40%;
	height: 40px;
	margin: 20px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.dialog .btn-confirm {
	background-color: var(--accent-color);
	color: #fff;
}

.dialog .btn-confirm:hover {
	background-color: #ff832b;
}

.dialog .btn-cancel {
	background-color: var(--medium-gray);
	color: var(--dark-gray);
}

.dialog .btn-cancel:hover {
	background-color: #ccc;
}

div.show {
	display: block;
}

/* 最下面的部分 */
.bottom-wrapper {
	margin-top: 30px;
	background-color: var(--light-gray);
	border-top: 1px solid var(--medium-gray);
	padding: 30px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}

.bottom {
	margin-top: 0;
}

.bottom h4 {
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--dark-gray);
	font-weight: 600;
}

.bottom a {
	text-decoration: none;
	color: var(--dark-gray);
	font-size: 12px;
	transition: color 0.3s ease;
}

.bottom a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.bottom li {
	margin-bottom: 5px;
}

.bottom>div {
	height: 120px;
	width: 120px;
	margin-left: -10px;
	margin-top: 10px;
}

.bottom img {
	width: 80%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom p {
	margin-top: 20px;
	font-size: 10px;
	color: #b0b0b0;
}

.bottom button {
	width: 100px;
	height: 40px;
	color: var(--dark-gray);
	margin-top: 20px;
	font-size: 12px;
	background-color: var(--light-gray);
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.bottom button:hover {
	background-color: var(--medium-gray);
}

.bottom-last {
	margin-left: 60px;
	margin-right: 0;
}

iframe {
	display: block;
	width: 100%;
	height: 60px;
	border: none;
}

#order-list-container {
	display: block; /* 确保元素正常显示 */
	width: auto;
	height: auto;
	visibility: visible;
}
.order-item {
	display: block;
	border: 1px solid #ccc; /* 为了方便查看，添加边框 */
	margin-bottom: 10px; /* 每个订单项之间留出间距 */
}
.order-info {
	display: block;
	padding: 10px;
}
.list-center .inline-container {
	font-size: 0;
}

/* 整体订单列表容器样式 */
#order-list-container {
	width: 100%;
	max-width: 900px; /* 适当增大最大宽度 */
	margin: 0 auto;
	padding: 20px;
	background-color: #f9f9f9; /* 添加背景颜色，增强层次感 */
	border-radius: 12px; /* 增大圆角 */
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.08); /* 调整阴影 */
	max-height: 500px; /* 设置最大高度，超出则出现滚动条 */
	overflow-y: auto; /* 垂直方向溢出时显示滚动条 */
}

/* 自定义滚动条样式 */
#order-list-container::-webkit-scrollbar {
	width: 8px; /* 滚动条宽度 */
}

#order-list-container::-webkit-scrollbar-track {
	background: #f1f1f1; /* 滚动条轨道背景颜色 */
	border-radius: 4px; /* 轨道圆角 */
}

#order-list-container::-webkit-scrollbar-thumb {
	background: #888; /* 滚动条滑块颜色 */
	border-radius: 4px; /* 滑块圆角 */
}

#order-list-container::-webkit-scrollbar-thumb:hover {
	background: #555; /* 鼠标悬停时滑块颜色 */
}

/* 单个订单项样式 */
.order-item {
	background-color: #ffffff;
	border: none; /* 去除边框 */
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	margin-bottom: 25px; /* 增大底部间距 */
	padding: 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease; /* 过渡效果更平滑 */
	transform: translateY(0); /* 初始位置 */
}

.order-item:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px); /* 鼠标悬停时向上移动 */
}

/* 订单信息样式 */
.order-info {
	display: flex;
	flex-wrap: wrap;
	gap: 15px; /* 增大信息项之间的间距 */
}

.order-info span {
	font-size: 15px; /* 增大字体大小 */
	color: #555; /* 调整字体颜色 */
	padding: 8px 12px; /* 增大内边距 */
	background-color: #f0f0f0;
	border-radius: 6px; /* 增大圆角 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 添加小阴影 */
	transition: background-color 0.3s ease; /* 背景颜色过渡效果 */
}

.order-info span:hover {
	background-color: #e0e0e0; /* 鼠标悬停时背景颜色变化 */
}

/* 取消订单按钮样式 */
.cancel-order-button {
	background-color: #ff6b6b; /* 调整按钮颜色 */
	color: #ffffff;
	border: none;
	border-radius: 5px; /* 增大圆角 */
	padding: 10px 10px; /* 增大内边距 */
	cursor: pointer;
	font-size: 15px; /* 增大字体大小 */
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2); /* 添加阴影 */
	width: 150px;
	height: 50px;
}

.cancel-order-button:hover {
	background-color: #ff8787;
	transform: scale(1.05); /* 鼠标悬停时放大 */
}


/* 支付订单按钮样式 */
.pay-order-button {
	background-color: #ff6b6b; /* 调整按钮颜色 */
	color: #ffffff;
	border: none;
	border-radius: 5px; /* 增大圆角 */
	padding: 10px 10px; /* 增大内边距 */
	cursor: pointer;
	font-size: 15px; /* 增大字体大小 */
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2); /* 添加阴影 */
	width: 150px;
	height: 50px;
}

.pay-order-button:hover {
	background-color: #ff8787;
	transform: scale(1.05); /* 鼠标悬停时放大 */
}
/* 已收货按钮样式 */
.received-order-button {
	background-color: #ff6b6b; /* 调整按钮颜色 */
	color: #ffffff;
	border: none;
	border-radius: 5px; /* 增大圆角 */
	padding: 10px 10px; /* 增大内边距 */
	cursor: pointer;
	font-size: 15px; /* 增大字体大小 */
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2); /* 添加阴影 */
	width: 150px;
	height: 50px;
}

.received-order-button {
	background-color: #ff8787;
	transform: scale(1.05); /* 鼠标悬停时放大 */
}

/* 取消订单按钮样式 */
.complete-order-button {
	background-color: #ff6b6b; /* 调整按钮颜色 */
	color: #ffffff;
	border: none;
	border-radius: 5px; /* 增大圆角 */
	padding: 10px 10px; /* 增大内边距 */
	cursor: pointer;
	font-size: 15px; /* 增大字体大小 */
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2); /* 添加阴影 */
	width: 150px;
	height: 50px;
}

.complete-order-button:hover {
	background-color: #ff8787;
	transform: scale(1.05); /* 鼠标悬停时放大 */
}

/* 删除订单按钮样式 */
.delete-order-button{
	background-color: #ff6b6b; /* 调整按钮颜色 */
	color: #ffffff;
	border: none;
	border-radius: 5px; /* 增大圆角 */
	padding: 10px 10px; /* 增大内边距 */
	cursor: pointer;
	font-size: 15px; /* 增大字体大小 */
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2); /* 添加阴影 */
	width: 150px;
	height: 50px;
}

.delete-order-button:hover {
	background-color: #ff8787;
	transform: scale(1.05); /* 鼠标悬停时放大 */
}

/* 订单详情对话框样式 */
.order-detail-dialog {
	padding: 20px;
}

/* 单个商品项样式 */
.product-item {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e0e0e0;
	padding: 15px 0;
}

/* 商品图片样式 */
.product-image {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	margin-right: 20px;
}

/* 商品信息容器样式 */
.product-info {
	display: flex;
	flex-direction: column;
}

/* 商品信息项样式 */
.product-info span {
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
}
/* 新增分类样式 */
.order-category {
	margin: 20px 0;
	border: 1px solid #eee;
	border-radius: 4px;
	padding: 15px;
}

.order-category h4 {
	font-size: 18px;
	color: #333;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #eee;
}

.order-items {
	display: grid;
	gap: 15px;
}

.order-items > p {
	color: #999;
	text-align: center;
	padding: 20px;
}

